const transferDate = (date: any) => {
  const newDate = new Date(date);

  const year = newDate.getFullYear();
  const month = newDate.getMonth() + 1; // 月份从0开始，所以要 +1
  const day = newDate.getDate();

  const formattedTime = year + '/' + month + '/' + day;
  return formattedTime;
}

export default transferDate;